<?php

    class x_admin {
        protected $db_man;
        protected $select = "select ip_publica from x_admin";
        protected $update_reboot = "update x_admin set reboot=1";
        
        function x_admin($dbm) {
            $this->db_man = $dbm;
        }
        
        function get_public_ip() {
            $csr = $this->db_man->do_query($this->select);
            return ($csr);
        }
        
        function set_reboot_mark() {
        	return ($this->db_man->do_dml($this->update_reboot));
        }
    }

?>